// src/routes/patientsRoutes.js
const express = require('express');
const router = express.Router();
const patientsController = require('../controllers/patientsController');

router.get('/patients', patientsController.getPatients);
router.post('/add', patientsController.createPatient);
router.post('/update/:id', patientsController.updatePatient);
router.post('/delete/:id', patientsController.deletePatient);

module.exports = router;